package com.joelemon.mockinfluxdbdata.mock;

import cn.hutool.core.date.DateTime;
import lombok.Data;

import java.util.Map;

/**
 * @Description: 插入数据
 * @Author: HJY
 * @Date: 2023/11/16
 */
@Data
public class DataLine {

    private String measurement;

    private Map<String, String> tagMap;

    private Map<String, Object> fieldMap;

    private DateTime time;

    public boolean check() {
        return measurement != null && measurement.length() > 0 && tagMap != null && tagMap.size() > 0 && fieldMap != null && fieldMap.size() > 0 && time != null;
    }
}
